package oop2;

import java.util.Scanner;

public class JavaStudentTest {

	public static void main(String[] args) {
		//
		// Scanner sc = new Scanner(System.in);
		JavaStudent j2 = new JavaStudent(80, 82);
		j2.show();
		JavaStudent j = new JavaStudent("小李", 80, 82);
		j.show();

		JavaStudent j3 = new JavaStudent("老吴", 98);
		j3.show();
		JavaStudent[] sr = { new JavaStudent("老刘", 66, 78), new JavaStudent("老张", 89, 66) };
		System.out.println("----构造方法对于一个对象只能调用一次-------------------");
		JavaStudent j4 = new JavaStudent("小刘", 88, 87);
		System.out.println(j4);
		j4.show();

		j4 = new JavaStudent("小刘", 88, 87);
		j4.show();
		// j4.show();
		// j4.show();
		System.out.println(j4);
	}

}
